﻿@model TJBHJJ.Models.Job
@{
    ViewBag.Title = "添加招聘";
}
<script type="text/javascript">
    $(document).ready(function () {
        $("#CreatDateTime").datepicker();
    });
    $(document).ready(function () {
        $("#EndDateTime").datepicker();
    });

    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('#Content',
        {
            allowFileManager: true,
            uploadJson: '/Manager/UploadImage'
        });
    });
</script>
@using (Html.BeginForm("AddJob", "Manager", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>添加招聘</legend>
        <table>
            <tr>
                <td>
                    招聘职位：
                </td>
                <td>@Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </td>
            </tr>
            <tr>
                <td>
                    工作地址：
                </td>
                <td>@Html.EditorFor(model => model.Address)
                    @Html.ValidationMessageFor(model => model.Address)
                </td>
            </tr>
            <tr>
                <td>
                    薪资：
                </td>
                <td>
                    @Html.EditorFor(model => model.Salary)
                    @Html.ValidationMessageFor(model => model.Salary)
                </td>
            </tr>
            <tr>
                <td>
                    招聘人数：
                </td>
                <td>@Html.EditorFor(model => model.JobNumber)
                    @Html.ValidationMessageFor(model => model.JobNumber)
                </td>
            </tr>
            <tr>
                <td>
                    有效期：
                </td>
                <td>
                    @Html.EditorFor(model => model.CreatDateTime)
                    @Html.ValidationMessageFor(model => model.CreatDateTime)
                    至：
                    @Html.EditorFor(model => model.EndDateTime)
                    @Html.ValidationMessageFor(model => model.EndDateTime)
                </td>
            </tr>
            <tr>
                <td>
                    是否显示：
                </td>
                <td>@Html.EditorFor(model => model.IsDisplay)
                    @Html.ValidationMessageFor(model => model.IsDisplay)
                </td>
            </tr>
            <tr>
                <td>
                    职位描述：
                </td>
                <td>@Html.TextAreaFor(model => model.Content, new { style = "width:700px;height:300px" })
                    @Html.ValidationMessageFor(model => model.Content)
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("返回列表", "ListJob")
</div>
